package br.com.future.study;

import java.util.UUID;

import br.com.future.dao.FutureDao;
import br.com.future.domain.User;

public class SayHello {

	private String name;
	private FutureDao dao;

	public void greet() {
		System.out.println("Hello " + getName());
	}

	public void addUser() {
		dao.persistUser(new User("Rafa", "rafa.ferreira@gmail.com", UUID.randomUUID().toString(), "passwd"));
	}

	public void printUsers() {
		for (User oneUser : dao.getUsers()) {
			System.out.println(oneUser.toString());
		}
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public FutureDao getDao() {
		return dao;
	}

	public void setDao(FutureDao dao) {
		this.dao = dao;
	}
}
